from django.urls import re_path, path, include
from rest_framework import routers
from . import views, pages

router = routers.DefaultRouter()
router.register(r"test", views.HelloWorld, basename="00测试页面")

# router.register(r"login", views.AdminUserLoginViewSet, basename="10后台登录")
# router.register(r"newSuper", views.AddAdminUserbaseListViewSet, basename="10注册管理员")
# router.register(r"LoginToken", GamoPlacetokenLoginViewSet, basename="01登录认证账户")
# router.register(
#     r"Statics", views.AllinpayStaticnavListViewSet, basename="02场所静态资源"
# )
# router.register(
#     r"State", views.AllinpayStaticstateListViewSet, basename="03场所终端状态"
# )
# router.register(r"Conf", views.AllinpayStaticnavConfViewSet, basename="04场所咨客配置")
# router.register(
#     r"Place", views.NavMapAllinpayPlaceListViewSet, basename="05场所基础信息"
# )

urlpatterns = [
    path("", include(router.urls)),
    path("login/", pages.Login.as_view()),
    path("index/", pages.Index.as_view()),
    path("logout/", pages.logout),
    path("root/", pages.Root.as_view()),
]
